<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>正在跳转...</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="../css/currency.css">
    <style>
        body {
            background: rgba(253, 228, 228, 0.84);
        }
    </style>
</head>
<body>

<!-- 计时 -->
<div class="bob">
    <font size="5000">
    <h1>
        正在加载中：&nbsp;...<span id="time"><b>0</b></span>
    </h1>
    </font>
</div>

</body>

<!-- 计时控制 -->
<script>

    // 1、改变秒数跳转页面
    let num = 0;

    function Time() {
        num++;
        if (num === 1) {
            //条件满足，跳转页面
            location.href = "mhys.html";
        }
        //条件不满足，改变秒数
        let span = document.getElementById("time");
        span.innerHTML = num;
    }

    // 2、设置循环定时器，每一秒钟执行一次Time()方法
    setInterval("Time()", 1000);

</script>

</html>